package com.zhilifang.modules.zlf.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhilifang.modules.zlf.dao.InformationMapper;
import com.zhilifang.modules.zlf.entity.IdType;
import com.zhilifang.modules.zlf.entity.Information;
import com.zhilifang.modules.zlf.service.InformationService;
import com.zhilifang.modules.zlf.utils.QueryString;

import java.util.List;

@Service("informationService")
public class InformationServiceImpl implements InformationService {

    @Autowired
    private InformationMapper informationMapper;;


	@Override
	public List<Information> selectInformationListr(int id) {
		// TODO Auto-generated method stub
		return informationMapper.selectInformationListr(id);
	}

	@Override
	public List<Information> selecInformationPageQueryString(QueryString queryString) {
		// TODO Auto-generated method stub
		return informationMapper.selecInformationPageQueryString(queryString);
	}

	@Override
	public void insertInformation(Information information) {
		// TODO Auto-generated method stub
		informationMapper.insertInformation(information);
	}

	@Override
	public void updateInformation(Information information) {
		// TODO Auto-generated method stub
		informationMapper.updateInformation(information);
	}

	@Override
	public Information selectInformationById(int id) {
		// TODO Auto-generated method stub
		return informationMapper.selectInformationById(id);
	}

	@Override
	public void deleteInformationIds(int[] ids) {
		// TODO Auto-generated method stub
		informationMapper.deleteInformationIds(ids);
	}

	@Override
	public List<Information> selecUpInDn(Integer typeId, Integer id) {
		// TODO Auto-generated method stub
		return informationMapper.selecUpInDn(typeId, id);
	}

	@Override
	public IdType selecMinAndMaxId(Integer id) {
		// TODO Auto-generated method stub
		return informationMapper.selecMinAndMaxId(id);
	}


}